package com.ber.rocketmq.service.impl;

import com.ber.rocketmq.dao.MsgMapper;
import com.ber.rocketmq.domain.Msg;
import com.ber.rocketmq.service.MsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ber
 * @version 1.0
 * @date 21/7/19 21:23
 */
@Service
public class MsgServiceImpl implements MsgService {
    @Autowired
    private MsgMapper msgMapper;

    @Override
    public void saveMsg(Msg msg) {
        msgMapper.insert(msg);
    }
}
